<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>Document</title>
    <style></style>
  </head>
  <body>
    <div>
      <h1>Flow数组类型</h1>
    </div>
    <script>
      // 第一种
      // <>里面代表元素得到类型
      const arr1: Array<number> = [1, 2, 3, 4, 5, 6, 7, 8, 9];

      // 第二种
      const arr2: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9];

      //第三种:元组类型
      const arr3: [string, number] = ["1", 1];
    </script>
  </body>
</html>
